package com.tanggh.util;

import java.util.HashMap;
import java.util.Map;

/**
 * 该缓存为永久缓存, 不适用定时缓存
 * @author Administrator
 *
 */
public class CacheUtils {

	private static Map<Object, Object> map = new HashMap<Object, Object>();
	
	public synchronized static void put(Object key, Object value) {
		if(get(key) == null) {
			map.put(key, value);
		}
	}
	
	public static Object get(Object key) {
		return map.get(key);
	}
}
